1
general::
Be in a grouchy, irritable state, as in What's got into Max today? Did he get up on the wrong side of bed? This expression alludes to the ancient superstition that it was bad luck to put one's left foot down first, and was so used in a number of 17th-century plays. By the early 1800s it was associated more with ill humor than misfortune.
American Heritage Idioms
2
general::
Phrase(s): get up on the wrong side of bed [and] get out of the wrong side of bed
Fig. to seem grouchy on a particular day. • Did you get out of the wrong side of bed this morning? You are a real grouch.
McGrawhill's American Idioms And Phrasal Verbs